package com.cskaoyan.service;

import com.cskaoyan.bean.wxbo.WxAddressSaveBO;
import com.cskaoyan.bean.wxvo.AddressList;

import java.util.List;

/**
 * @Author Gan
 * @Date 2021/7/12 14:32
 * @Description:
 */
public interface WxAddressService {

    String selectAddressByUserId(Integer userId);

    int selectIsDefaultById(Integer id);

    List<Integer> selectIdByUserId(Integer id);

    String selectMobileById(Integer id);

    String selectNameById(Integer id);

    int selectAreaIdById(Integer userId);

    String selectAreaNameByAreaId(Integer areaId);

    int selectCityIdById(Integer id);

    String selectCityNameByCityId(int cityId);

    int selectProvinceIdById(Integer id);

    String selectProvinceNameByProvinceId(int provinceId);

    String selectAddressById2(Integer id);

    List<AddressList> addressList(Integer id);

    int setDeleteStatus(Integer id);

    int addAddress(WxAddressSaveBO wxAddressSaveBO, Integer userId);

    void updateAddress(WxAddressSaveBO wxAddressSaveBO, Integer userId);

    Integer saveAddress(WxAddressSaveBO wxAddressSaveBO, Integer id);
}
